package model;
import model.interfaces.CompositeNode;
import model.interfaces.Node;

public class NotNode extends CompositeNode {
	
	public NotNode(Node node) {
		this.childrenNodes.add(node);
		node.setFather(this);
	}
	
	public boolean hasChildren() {
		return true;
	}
	
	public boolean verify() {
		return ! childrenNodes.getFirst().verify();
	}

}
